package com.victualler.core.config.dict.service;

import com.victualler.core.base.service.BaseService;
import com.victualler.core.common.dto.list.DictComDto;
import com.victualler.core.config.dict.dto.DictTopDto;
import com.victualler.core.config.dict.entity.DictDao;
import com.victualler.core.config.dict.repository.DictQueryRepository;
import com.victualler.core.config.dict.repository.DictRepository;

import java.util.List;
import java.util.Map;

/**
 * @Author: Guoshichang
 * @Date: Create in 16:54 2018/4/5
 * @Discription:
 */
public interface DictService extends BaseService<DictDao, DictRepository,DictQueryRepository>{

     public List<DictTopDto> getDictTopDtoList();

     /**
      * @author Guoshichang
      * @since 20:26 on 2018/8/27.
      * @param codeType 字典类型
      * @return List
      * @Function 根据codeType 模糊查询
      */
     public List<DictTopDto> getDictTopDtoList(String codeType);

     public List<DictDao>  getDictByCodeType(String codeType);

     /**
      * @author Guoshichang   
      * @since 13:57 on 2018/11/14.
      * @param codeType codeType
      * @param codeCode codeCode
      * @return DictDao
      * @Function  查询字典对象
      */
     public DictDao  getDictByCodeType(String codeType,String codeCode);

     /**
      * @author Guoshichang
      * @since 16:24 on 2018/8/15.
      * @param codeTypes 字典码序列
      * @return Map
      * @Function 根据字典码序列转换为map大对象 便于渲染页面
      */
     public Map<String,DictComDto> getDictComByCodeType(String[] codeTypes);
}
